class RoleModel {
  String? id;
  String? departid;
  int? viewbitscope;
  String? code;
  String? name;
  String? isenable;
  String? sortcode;
  String? remark;
  String? modifyuserid;
  String? modifyusername;
  String? modifytime;
  String? createdepartid;
  String? createuserid;
  String? createusername;
  String? createtime;

  RoleModel({
    this.id,
    this.departid,
    this.viewbitscope,
    this.code,
    this.name,
    this.isenable,
    this.sortcode,
    this.remark,
    this.modifyuserid,
    this.modifyusername,
    this.modifytime,
    this.createdepartid,
    this.createuserid,
    this.createusername,
    this.createtime,
  });

  RoleModel.fromJson(dynamic json) {
    id = json['id'];
    departid = json['departid'];
    viewbitscope = json['viewbitscope'];
    code = json['code'];
    name = json['name'];
    isenable = json['isenable'];
    sortcode = json['sortcode'];
    remark = json['remark'];
    modifyuserid = json['modifyuserid'];
    modifyusername = json['modifyusername'];
    modifytime = json['modifytime'];
    createdepartid = json['createdepartid'];
    createuserid = json['createuserid'];
    createusername = json['createusername'];
    createtime = json['createtime'];
  }

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['departid'] = departid;
    map['viewbitscope'] = viewbitscope;
    map['code'] = code;
    map['name'] = name;
    map['isenable'] = isenable;
    map['sortcode'] = sortcode;
    map['remark'] = remark;
    map['modifyuserid'] = modifyuserid;
    map['modifyusername'] = modifyusername;
    map['modifytime'] = modifytime;
    map['createdepartid'] = createdepartid;
    map['createuserid'] = createuserid;
    map['createusername'] = createusername;
    map['createtime'] = createtime;
    return map;
  }
}
